<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>security system</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet"
	href="<c:url value="/css/bootstrap.min.css"></c:url>">
<script src="<c:url value="/js/jquery-1.9.1.min.js"></c:url>"></script>
<script src="<c:url value="/js/bootstrap.min.js"></c:url>"></script>
<script type="text/javascript">
	function accept(){
		if (confirm("Go to Dynamical Map?")) {
			location.href='<s:url namespace="/security" action="homeAction"/>';
		}
	}
	
</script>
</head>
<body>
	<nav class="navbar navbar-inverse" role="navigation">
		<!-- Brand and toggle get grouped for better mobile display -->
		<div class="navbar-header" style="margin:10px;">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#bs-example-navbar-collapse-1">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">UUC Bioengineering Ltd.</a>
		</div>
		<!-- Collect the nav links, forms, and other content for toggling -->
		<div class="collapse navbar-collapse"
			id="bs-example-navbar-collapse-1" style="margin:10px;">
			<ul class="nav navbar-nav">
				<li><a
					href="<s:url namespace="/security" action="homeAction"/>">Dynamical
						Map</a>
				</li>
				<li><a
					href="<s:url namespace="/security" action="loadLogAction"/>">Access
						Log</a>
				</li>
				<li class="active"><a
					href="<s:url namespace="/security" action="loadErrorReportAction"/>">Error
						Handle</a>
				</li>
				<li><a
					href="<s:url namespace="/security" action="loadFireReportAction"/>">Fire
						Alarm</a>
				</li>
			</ul>
			<ul class="nav navbar-nav navbar-right" style="margin-right:20px;">
				<li><a href="#">${loginedAdmin.admin_ID}</a>
				</li>
				<li><a href="#">${loginedAdmin.admin_Username}</a>
				</li>
				<li><a href="#">Security Administrator</a>
				</li>
				<li><a
					href='<s:url namespace="/system" action="adminLogout"></s:url>'>Log
						out</a>
				</li>
			</ul>
		</div>
		<!-- /.navbar-collapse -->
	</nav>
	<div class="container">
		<div class="row">
			<div class="col-lg-10 col-lg-offset-1">
				<div class="panel panel-danger">
					<div class="panel-heading">Error Details</div>
					<div class="panel-content"
						style="padding-top:20px;padding-bottom:20px;">
						<div class="row">
							<div class="col-lg-10 col-lg-offset-1">
									<div class="form-group">
										<label for="UserIDInput">UserID</label>
										<s:textfield name="msg.sender_ID" cssClass="form-control"
											id="UserIDInput" readonly="true"></s:textfield>
									</div>
									<div class="form-group">
										<label for="DatetimeInput">AdminID</label>
										<s:textfield name="msg.receiver_ID" cssClass="form-control"
											id="AdminIDInput" readonly="true"></s:textfield>
									</div>
									<div class="form-group">
										<label for="DatetimeInput">Date</label>
										<s:textfield name="msg.msg_Date" cssClass="form-control"
											id="MsgDateInput" readonly="true"></s:textfield>
									</div>
									<div class="form-group">
										<label for="ContentInput">Content</label>
										<s:textfield name="msg.msg_Content" cssClass="form-control"
											id="MsgContentInput" readonly="true"></s:textfield>
									</div>
									<div class="form-group">
										<div class="col-sm-offset-1 col-sm-2">
											<button class="btn btn-primary" onclick="accept();">Accept</button>
										</div>
									</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>